<?php
if(!defined('IN_DISCUZ')) {// || !defined('IN_ADMINCP')
	exit('Access Denied');
}
//var_dump($_GET);
//var_dump($_SERVER);
//var_dump($_G['setting']['verify']);



foreach ($_G['setting']['verify'] as $k => $v) {
	//因为系统设置了7种认证，首先判断是那一个是实名认证，admin.php?action=verify
	//echo $v['title'];
	var_dump(strpos($v['title'], '实名'));
	echo $v['title'].(strpos($v['title'], '实名') >= 0).'<br/>';
	if(strpos($v['title'], '实名') && ($v['available'] == '1')){
		$verify = DB::fetch_first('SELECT verify'.$k.' FROM '.DB::table('common_member_verify')." WHERE uid='$uid_'");
		echo $verify;
	}
}





//var_dump($_G);
//var_dump($_G['cache']);
//var_dump($_G['setting']);
//var_dump($_G['config']);
//var_dump($_G);
exit('[pauli]');
//var_dump($_G['setting']['verify']);
//echo strptime('2012-02-05 22:30', 'YYY-MM-DD hh:mm');
//print_r(date_parse('2012-02-05 22:30'));
//var_dump(strtotime('2012-02-05 22:30'));
//var_dump(time());

//var_dump($_G);
//$a='11111'||'ssss';
//var_dump($a);
echo '<br/>';
exit('[pauli]');

var_dump(intval('111'));
var_dump(intval(111));
var_dump(intval('aaa'));
exit('[pauli]');

$activity_leader=unserialize($_G['cache']['plugin']['donkey_activity']['activity_leader']);
var_dump($activity_leader);

$condition=array('groupid' => array(1=>'2', 2=>'3'));	//0=>'1', 
var_dump($condition);
include_once libfile('class/membersearch');
$ms = new membersearch();
$result = $ms->getcount($condition);
var_dump($result);
$result = $ms->makesql($condition);
var_dump($result);
$result = $ms->search($condition);
var_dump($result);

$groupid=array(0=>'1', 1=>'2', 2=>'3');
var_dump(implode(', ', $groupid));

$query = DB::query('SELECT DISTINCT uid, username FROM '.DB::table('common_member').' WHERE groupid IN ('.implode(', ', $groupid).')');
$activity_leader=array();
while($group = DB::fetch($query)) {
	$activity_leader[$group['uid']]=$group['username'];
}
var_dump($activity_leader);

$query = DB::fetch_first('SELECT value FROM '.DB::table('common_pluginvar').' WHERE variable=\'activity_leader\'');	// and pluginid=\''.$pluginid.'\'
var_dump($query);

$query=unserialize($query['value']);
var_dump($query);


$groupid = DB::fetch_first('SELECT value FROM '.DB::table('common_pluginvar').' WHERE variable=\'activity_leader\'');	// and pluginid=\''.$pluginid.'\'
$groupid=unserialize($groupid['value']);
var_dump($groupid);
exit('[pauli]');
?>